package Singleton;

public class Test {
    public static void main(String[] args) {
        SingleObject singletonObj = SingleObject.getInstance();  // 直接通过类名调用
        SingleObject single_2 = SingleObject.getInstance();  // 再次获取一个对象

        System.out.println(singletonObj);  // 两者对象地址一样~
        System.out.println(single_2);
    }
}
